package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WuzishenqingMapper;
import com.ruoyi.system.domain.Wuzishenqing;
import com.ruoyi.system.service.IWuzishenqingService;

/**
 * 物资申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
@Service
public class WuzishenqingServiceImpl implements IWuzishenqingService 
{
    @Autowired
    private WuzishenqingMapper wuzishenqingMapper;

    /**
     * 查询物资申请
     * 
     * @param id 物资申请主键
     * @return 物资申请
     */
    @Override
    public Wuzishenqing selectWuzishenqingById(Long id)
    {
        return wuzishenqingMapper.selectWuzishenqingById(id);
    }

    /**
     * 查询物资申请列表
     * 
     * @param wuzishenqing 物资申请
     * @return 物资申请
     */
    @Override
    public List<Wuzishenqing> selectWuzishenqingList(Wuzishenqing wuzishenqing)
    {
        return wuzishenqingMapper.selectWuzishenqingList(wuzishenqing);
    }

    /**
     * 新增物资申请
     * 
     * @param wuzishenqing 物资申请
     * @return 结果
     */
    @Override
    public int insertWuzishenqing(Wuzishenqing wuzishenqing)
    {
        return wuzishenqingMapper.insertWuzishenqing(wuzishenqing);
    }

    /**
     * 修改物资申请
     * 
     * @param wuzishenqing 物资申请
     * @return 结果
     */
    @Override
    public int updateWuzishenqing(Wuzishenqing wuzishenqing)
    {
        return wuzishenqingMapper.updateWuzishenqing(wuzishenqing);
    }

    /**
     * 批量删除物资申请
     * 
     * @param ids 需要删除的物资申请主键
     * @return 结果
     */
    @Override
    public int deleteWuzishenqingByIds(Long[] ids)
    {
        return wuzishenqingMapper.deleteWuzishenqingByIds(ids);
    }

    /**
     * 删除物资申请信息
     * 
     * @param id 物资申请主键
     * @return 结果
     */
    @Override
    public int deleteWuzishenqingById(Long id)
    {
        return wuzishenqingMapper.deleteWuzishenqingById(id);
    }
}
